﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkManapro.BusinessModel;
using System.Collections;

namespace GMAC.ReportingSystem.Business.Entities
{
//-----------------------------------------------------------------------------------------------------------------------------------
    /// <summary>
    /// Clase usada para reprsentar los registros de la tabla [TemporaryAdditionalInformationDealer]
    /// que es usada para la carga masiva de personas que asisten por concesionario a los cursos 
    /// dictados por GMAC y los puntos que el concesionario ganó mensualmente por contestar las preguntas en twitter
    /// </summary>
    //[DbProcedures(Insert = "", Update = "", Delete = "")]
    public class StringAdditionalInformationDealer : BusinessEntity //, IComparable<StringAdditionalInformationDealer>
    {
	    public String AdditionalInformationDealerNumber { get; set; }
	    public String AdditionalInformationDealerMonth { get; set; }
	    public String AdditionalInformationDealerGMACAcademy { get; set; }
	    public String AdditionalInformationDealerTwiter { get; set; }
	    public DateTime LoadDate { get; set; }
	    public int UserID { get; set; }
	    public bool bitStatus { get; set; }
        public String RejectionReason { get; set; }
        public String RejectionReason_Small
        {
            get
            {
                return (RejectionReason.Length > 50) ? RejectionReason.Substring(0, 50) : RejectionReason;
            }
        } // RejectionReason_Small

    } // class


////-----------------------------------------------------------------------------------------------------------------------------------

//    private class ComparadorAdditionalInformationDealerNumber<T> : IComparer<T>
//    {
//        /// <summary>
//        /// Metodo de comparacion
//        /// </summary>
//        /// <param name="primerObjeto"></param>
//        /// <param name="segundoObjeto"></param>
//        /// <returns></returns>
//        int IComparer.Compare(
//                              StringAdditionalInformationDealer primerObjeto
//                            , StringAdditionalInformationDealer segundoObjeto
//                             )
//        {
//            StringAdditionalInformationDealer oPrimerObjeto = (StringAdditionalInformationDealer)primerObjeto;
//            StringAdditionalInformationDealer oSegundoObjeto = (StringAdditionalInformationDealer)segundoObjeto;

//            if (oPrimerObjeto.AdditionalInformationDealerNumber > oSegundoObjeto.AdditionalInformationDealerNumber)
//            {
//                return 1;
//            }
//            if
//                (oPrimerObjeto.AdditionalInformationDealerNumber < oSegundoObjeto.AdditionalInformationDealerNumber)
//            {
//                return -1;
//            }
//            else
//            {
//                return 0;
//            } // else
//        }
//    } // class ComparadorAdditionalInformationDealerNumber


////-----------------------------------------------------------------------------------------------------------------------------------

    /// <summary>
    /// Colecion de StringAdditionalInformationDealer
    /// </summary>
    public class StringAdditionalInformationDealerCollection : List<StringAdditionalInformationDealer>
    {
    } // StringAdditionalInformationDealerCollection

//-----------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------


} // namespace
